package com.itfreer.gis.locus.data;

import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.itfreer.form.api.BaseRestService;
import com.itfreer.form.api.BaseService;
import com.itfreer.gis.locus.data.entity.LocusOnlineEntity;

import io.swagger.annotations.Api;

/**
 * 在线用户
 */
@RestController
@RequestMapping("/locusonline")
@Api("在线用户")
public class RestLocusOnlineService extends BaseRestService<LocusOnlineEntity> {

	@Autowired(required = false)
	private LocusOnlineService service;

	@Reference(
			lazy = true,
			check = false
	)
	private LocusOnlineService dubboService;

	@Override
	protected BaseService<LocusOnlineEntity> getService() {
		return this.service == null ? this.dubboService : this.service;
	}
}
